package com.vixo.videopager;

import android.app.Fragment;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.dingmouren.layoutmanagergroup.viewpager.ViewPagerLayoutManager;
import com.example.administrator.douyinviewpager.R;
import com.vixo.unityandroid.TestActivity;
import com.vixo.unityandroid.TestFragment;
import com.vixo.unityandroid.XYZActivityHelper;

public class MainActivity extends AppCompatActivity implements VixoPlayerFragment.OnFragmentInteractionListener {

    private static final String TAG = "ViewPagerActivity";
    private RecyclerView mRecyclerView;
    private ViewPagerLayoutManager mLayoutManager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void openActivity(View v)
    {
        XYZActivityHelper.showActivity(this,TestActivity.class);
    }

    public void openFragment(View v)
    {
        XYZActivityHelper.showFragment(this,new TestFragment());
    }

    public void openVixoPlayerFragment(View v)
    {
        //XYZActivityHelper.showFragment(this,new VixoPlayerFragment());
        XYZActivityHelper.showVixoVideoPlayFrag(this);
    }

    @Override
    public void onFragmentInteraction(Uri uri) {

    }
}
